//
//  ColorViewController.m
//  iOSCodeLearning
//
//  Created by TFAppleWork-Summer on 2018/3/14.
//  Copyright © 2018年 Ace. All rights reserved.
//

#import "ColorViewController.h"

@interface ColorViewController ()
@property (nonatomic, strong) UILabel  *indexLabel;
@end

@implementation ColorViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor randomColor];
    
    self.indexLabel = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    self.indexLabel.textColor = [UIColor blackColor];
    self.indexLabel.text = self.indexString;
    
    [self.view addSubview:self.indexLabel];
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
